home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / demo / vtskt10i.zip / CONNECT.FRM < prev    next >
Text File  |  1993-12-08  |  2KB  |  86 lines

  1. VERSION 2.00
  2. Begin Form connect_form 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Connect"
  6.    ClientHeight    =   960
  7.    ClientLeft      =   2745
  8.    ClientTop       =   2925
  9.    ClientWidth     =   4575
  10.    Height          =   1365
  11.    Left            =   2685
  12.    LinkTopic       =   "Form2"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   960
  16.    ScaleWidth      =   4575
  17.    Top             =   2580
  18.    Width           =   4695
  19.    Begin CommandButton cancel 
  20.       Caption         =   "Cancel"
  21.       Height          =   345
  22.       Left            =   2130
  23.       TabIndex        =   3
  24.       Top             =   480
  25.       Width           =   945
  26.    End
  27.    Begin CommandButton connect 
  28.       Caption         =   "Connect"
  29.       Default         =   -1  'True
  30.       Height          =   345
  31.       Left            =   1110
  32.       TabIndex        =   2
  33.       Top             =   480
  34.       Width           =   945
  35.    End
  36.    Begin TextBox ipname 
  37.       Height          =   285
  38.       Left            =   870
  39.       TabIndex        =   1
  40.       Top             =   90
  41.       Width           =   3585
  42.    End
  43.    Begin Label Label1 
  44.       BackColor       =   &H00C0C0C0&
  45.       Caption         =   "IP Name"
  46.       Height          =   225
  47.       Left            =   60
  48.       TabIndex        =   0
  49.       Top             =   120
  50.       Width           =   765
  51.    End
  52. End
  53.  
  54. Sub cancel_Click ()
  55.  
  56.   telnet_form.WinSock1.IPName = ""
  57.   telnet_form.WinSock1.Port = 0
  58.   Hide
  59.  
  60. End Sub
  61.  
  62. Sub connect_click ()
  63.  
  64.   telnet_form.WinSock1.IPName = IPName
  65.   telnet_form.WinSock1.Port = 23
  66.   Hide
  67.  
  68. End Sub
  69.  
  70. Sub Form_Activate ()
  71.  
  72.   IPName = telnet_form.WinSock1.IPName
  73.   Port = Str$(telnet_form.WinSock1.Port)
  74.  
  75. End Sub
  76.  
  77. Sub ipname_KeyPress (keyascii As Integer)
  78.  
  79.   If keyascii = 13 Then
  80.     connect_click
  81.     keyascii = 0
  82.   End If
  83.  
  84. End Sub
  85.  
  86.